<?php
namespace Phone\Controller;
use Think\Controller;
/**
 * 手机端用户信息获取及登录
 */
 class UserController extends Controller{
 	
 	
	public function index(){
		echo '1';
	}
 	
	/**
	 * 手机端异步信息请求与登录判断
	 */
	 public function loginajax(){
	 	if(IS_POST){
	 		$userModel = D('user');
	 		$data = $userModel->Login();
	 		$this->ajaxReturn($data);
	 	}
	 }
	 
	 public function userReg(){
	 	if(IS_POST){
	 		$userModel = D('user');
	 		$data = $userModel->userReg();
	 		$this->ajaxReturn($data);
	 	}
	 }
	 
	 
	 
	
 }
